package com.ruoyi.mdm.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

@Data
@Document(indexName = "spu_info") // 索引名称
public class SpuInfoEntity {
    @Id
    private Long id;

    /**
     * 关键字
     */
    @Field(name = "keyword")
    private String keyword;

    /**
     * 来源(01:自动，02:手动)
     */
    @Field(name = "spu_source")
    private String spuSource;

    /**
     * spu编码
     */
    @Field(name = "spu_code")
    private String spuCode;

    /**
     * 所属品牌代码
     */
    @Field(name = "owner_id")
    private String ownerId;

    /**
     * spu中文名称
     */
    @Field(name = "spu_name")
    private String spuName;

    /**
     * spu英文名称
     */
    @Field(name = "spu_name_en")
    private String spuNameEn;

    /**
     * spu简称
     */
    @Field(name = "spu_short_name")
    private String spuShortName;

    /**
     * spu昵称
     */
    @Field(name = "spu_nick_name")
    private String spuNickName;

    /**
     * spu图片1
     */
    @Field(name = "spu_image_one")
    private String spuImageOne;

    /**
     * spu图片2
     */
    @Field(name = "spu_image_two")
    private String spuImageTwo;

    /**
     * spu图片3
     */
    @Field(name = "spu_image_three")
    private String spuImageThree;

    /**
     * spu图片4
     */
    @Field(name = "spu_image_four")
    private String spuImageFour;

    /**
     * spu图片5
     */
    @Field(name = "spu_image_five")
    private String spuImageFive;

    /**
     * 状态
     */
    @Field(name = "status")
    private String status;

    /**
     * 是否删除(y：是，n：否)
     */
    @Field(name = "del_flag")
    private String delFlag;

    /**
     * 创建者
     */
    @Field(name = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @Field(name = "create_time")
    private String createTime;

    /**
     * 更新者
     */
    @Field(name = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @Field(name = "update_time")
    private String updateTime;

    /**
     * 分页
     */
    private int page = 0;

    /**
     * 每页条数
     */
    private int size = 1000000;
}